package com.ruoyi.community.domain;

import java.util.List;

import com.ruoyi.community.domain.relationship.CommunityBooksAll;
import com.ruoyi.community.domain.relationship.CommunityUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社区帖子对象 community_post
 *
 * @author FeiYiLand
 * @date 2024-07-14
 */
public class CommunityPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子ID */
    private Long postId;

    /** 发帖用户ID */
    @Excel(name = "发帖用户ID")
    private Long postUserId;

    /** 帖子所属项目ID */
    @Excel(name = "帖子所属项目ID")
    private Long postAllId;

    /** 帖子标题 */
    @Excel(name = "帖子标题")
    private String postTitle;

    /** 帖子内容 */
    @Excel(name = "帖子内容")
    private String postContent;

    /** 社区评论信息 */
    private List<CommunityComments> communityCommentsList;


    /**用户信息*/
    private CommunityUser communityUserNameDD;

    /**帖子项目归属信息*/
   private CommunityBooksAll communityBooksAllNameDD;


    public CommunityUser getCommunityUserNameDD() {
        return communityUserNameDD;
    }

    public void setCommunityUserNameDD(CommunityUser communityUserNameDD) {
        this.communityUserNameDD = communityUserNameDD;
    }


    public CommunityBooksAll getCommunityBooksAllNameDD() {
        return communityBooksAllNameDD;
    }

    public void setCommunityBooksAllNameDD(CommunityBooksAll communityBooksAllNameDD) {
        this.communityBooksAllNameDD = communityBooksAllNameDD;
    }

    public void setPostId(Long postId)
    {
        this.postId = postId;
    }

    public Long getPostId()
    {
        return postId;
    }
    public void setPostUserId(Long postUserId)
    {
        this.postUserId = postUserId;
    }

    public Long getPostUserId()
    {
        return postUserId;
    }
    public void setPostAllId(Long postAllId)
    {
        this.postAllId = postAllId;
    }

    public Long getPostAllId()
    {
        return postAllId;
    }
    public void setPostTitle(String postTitle)
    {
        this.postTitle = postTitle;
    }

    public String getPostTitle()
    {
        return postTitle;
    }
    public void setPostContent(String postContent)
    {
        this.postContent = postContent;
    }

    public String getPostContent()
    {
        return postContent;
    }

    public List<CommunityComments> getCommunityCommentsList()
    {
        return communityCommentsList;
    }

    public void setCommunityCommentsList(List<CommunityComments> communityCommentsList)
    {
        this.communityCommentsList = communityCommentsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("postUserId", getPostUserId())
            .append("postAllId", getPostAllId())
            .append("postTitle", getPostTitle())
            .append("postContent", getPostContent())
            .append("createTime", getCreateTime())
            .append("communityCommentsList", getCommunityCommentsList())
                .append("userList",getCommunityUserNameDD())
                .append("booksAllList",getCommunityBooksAllNameDD())

            .toString();
    }
}
